package com.org.cys.service.information;

import java.util.List;

import com.org.cys.pojo.base.Page;
import com.org.cys.util.PageData;

/**
 *  t_information_news Service接口
 *	@author caiyushen
 */
public interface NewsService{
	
	/**
	 * 装载News
	 * @param PageData
	 * @return
	 * @throws Exception 
	 * */
	 PageData getEntityById(PageData pd) throws Exception;
	 
	/**
	 * 根据id装载News
	 * @param PageData
	 * @return
	 * @throws Exception 
	 * */
	 PageData getEntityById(Long id) throws Exception;
	
	/**
	 * 保存News
	 * @param PageData
	 * @throws Exception
	 * */
	 void save(PageData pd) throws Exception;
	
	/**
	  * 批量保存News
	  * @param PageData
	  * @throws Exception
	  * */
	 void saveBatch(List<PageData> pdList) throws Exception;
	
	
	/**
	 * 更新News
	 * @param PageData
	 * @throws Exception
	 * */
	 void update(PageData pd) throws Exception;
	
    
	/**
	 * 删除News
	 * @param PageData
	 * @throws Exception
	 * */
	 void delete(PageData pd) throws Exception;
	
	/**
	 * News列表
	 * @param PageData
	 * @throws Exception
	 * */
	 List<PageData> dataList(Page page) throws Exception;
	
	/**
	 * 获取所有News数据
	 * @param PageData
	 * @throws Exception
	 * */
	 List<PageData> listAll(PageData pd) throws Exception;
	
	/**
	 * 批量删除News
	 * @param ArrayDATA_IDS[]
	 * @throws Exception
	 * */
	 void deleteAll(String[] ArrayDATA_IDS) throws Exception;
	
	 /**
	  * 批量更改发布状态
	  * @param ArrayDATA_IDS id数据集
	  * @param newsStatus 发布状态 1:已发布 2:未发布
	  * @throws Exception
	  * */
	 void updateNewsStatus(String[] ArrayDATA_IDS,Integer newsStatus) throws Exception;
}
 



